//
//  ClockTypeTwoViewController.m
//  SpecialEffectsProject
//
//  Created by 蓓蕾 on 2021/11/4.
//

#import "ClockTypeTwoViewController.h"
#import "ClockTwoView.h"

@interface ClockTypeTwoViewController ()

@end

@implementation ClockTypeTwoViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    [self initClockView];
}

-(void)initClockView
{
    ClockTwoView *clock = [[ClockTwoView alloc]initWithFrame:CGRectMake(50, 150, 488/2, 485/2)];
    clock.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:clock];
    clock.timeValue = ^(NSString * _Nonnull time) {
        NSLog(@"%@",time);
    };
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
